package manager
{
	import flash.display.MovieClip;
	
	import utils.GameUtils;
	
	import view.Arm.plane.APlane;
	import view.Arm.tank.ATank;
	import view.Arm.tank.BTank;
	import view.Arm.tank.CTank;
	import view.Arm.tank.DTank;
	import view.Arm.tank.ETank;
	import view.other.YaLuJiView;

	public class TankName
	{
		public static const A_TANK:String = "A";
		
		public static const B_TANK:String = "B";
		public static const C_TANK:String = "C";
		public static const D_TANK:String = "D";
		public static const E_TANK:String = "E";
		public static const A_PLANE_TANK:String = "AP";
		
		public static const YALUJI:String = "YLJ";
		
		public static function getTankCls(type:String):Class{
			var cls:Class;
			switch(type){
				case A_TANK:
					cls = ATank;
					break;
				case B_TANK:
					cls = BTank;
					break;
				case C_TANK:
					cls = CTank;
					break;
				case D_TANK:
					cls = DTank;
					break;
				case E_TANK:
					cls = ETank;
					break;
				case YALUJI:
					cls = YaLuJiView;
					break;
				case A_PLANE_TANK:
					cls = APlane;
					break;
			}
			return cls;
		}
		
		public static function getTankClsForClip(type:String):Class{
			var cls:Class;
			switch(type){
				case A_TANK:
					cls = ATankCls;
					break;
				case B_TANK:
					cls = BTankCls;
					break;
				case C_TANK:
					cls = CTankCls;
					break;
				case D_TANK:
					cls = DTankCls;
					break;
				case E_TANK:
					cls = GameUtils.getClsFromDomain("ui.ria.Karl");
					break;
				case YALUJI:
					cls = YaLuJi;
					break
				case A_PLANE_TANK:
					cls = GameUtils.getClsFromDomain("ui.ria.Fighter");
					break;
			}
			return cls;
		}
	}
}